package cn.edu.huas.shopping.service;

import cn.edu.huas.shopping.exception.DaoException;
import cn.edu.huas.shopping.pojo.Order;
import cn.edu.huas.shopping.pojo.OrderItem;
import cn.edu.huas.shopping.pojo.PageResult;
import cn.edu.huas.shopping.pojo.Product;

import java.util.List;
import java.util.Map;

public interface ProductService {

    //获得首页商品
    public Map<String, Object> loadIndexProduct() throws DaoException;
    //获取Product
    public Product loadOneProduct(Integer id)throws DaoException;
    //获取orderitem中的商品
    public OrderItem loadOrderItem(Integer id)throws DaoException;
    //获取pageResult--cid类别编号
    public PageResult<Product> pageQuery(Integer cid,Integer pageIndex,Integer pageSize)throws DaoException;

}
